<!DOCTYPE html><html><head>
<title>欢迎来到订单大抽奖</title>
<link rel="stylesheet" href="/assets/shoptaepc/front.css">
{if !$tae}
<script src="http://a.tbcdn.cn/s/kissy/1.3.0/kissy-min.js" charset="utf-8"></script>
{/if}
{if $cfg.tool_type==3}
<link rel="stylesheet" type="text/css" href="/assets/css/{$ctp}.css">
<script src="/assets/js/{$ctp}.js" type="text/javascript"></script>
{/if}
<script src="http://l.tbcdn.cn/apps/top/x/sdk.js?appkey=12676596" ></script>
<cajamodules include="kissy/1.3.0/core,jssdk/1.0/index,kissy/gallery/layer-anim/1.1/index" />
<script src="/assets/shoptaepc/config.js" type="text/javascript"></script>
<script src="/assets/shoptaepc/dialog.js" type="text/javascript"></script>
<script src="/assets/shoptaepc/front_event.js" type="text/javascript"></script>
</head>
<body>
<div class="mainContent">
  <div class="indexEvent {$ctp|default:'eggs'}_b">
    <div style="width:990px;margin:0 auto">
	{if $cfg.front_pic==1}
	<img data-tp="jinnang" class="jinnang jn_bag" style="{foreach from=$front_cfg.jinnang item=i key=k}{$k}:{$i};{/foreach}" src="{$front_cfg.jinnang.pic|default:'https://img.alicdn.com/imgextra/i4/27390555/TB2bVzGtXXXXXceXXXXXXXXXXXX-27390555.png'|replace:"url(":""|replace:") no-repeat":""}">
	{else}
	<img data-tp="jinnang" class="jinnang jn_bag" src="{$cfg.front_mob_cfg.start_page.main_bag|default:'https://img.alicdn.com/imgextra/i4/27390555/TB2bVzGtXXXXXceXXXXXXXXXXXX-27390555.png'}">
	{/if}
      <div class="event {$ctp|default:'eggs'}_i" {if $cfg.front_pic==1} style="background:url({$cfg.front_pic_url});"{/if}>
	  {if !$cfgok}
	  <div style="filter:alpha(opacity=70);-moz-opacity:0.7;-khtml-opacity: 0.7;opacity: 0.7;width:100%;height:100%;position:absolute;background:#000;z-index: 999;font-size:40px;color:#FFF;text-align:center;padding-top:140px">{$errmsg}</div>
	  {/if}
	  <div class="J_TWidget" data-widget-type="Countdown"  data-widget-config="
			{ldelim}
				'endTime': '{$contdown}000',
				'interval': 1000, 
				'timeRunCls': '.ks-countdown-run', 
				'timeUnitCls':{ldelim}
					'd': '.ks-d',
					'h': '.ks-h', 
					'm': '.ks-m',
					's': '.ks-s', 
					'i': '.ks-i' 
					{rdelim},
				'minDigit': 1,
				'timeEndCls': '.ks-countdown-end'
			{rdelim}">
          <div class="ks-countdown-run contdown" {if $cfg.front_pic==1}style="{foreach from=$front_cfg.contdown item=item key=key}{$key}:{$item};{/foreach}"{/if}> <span class="ks-d value {if $cfg.tool_type==3}hide{/if}">00</span> <span class="ks-h value {if $cfg.tool_type==3}hide{/if}">00</span> <span class="ks-m value">00</span> <span class="ks-s value">00</span> </div>
          {if $cfg.tool_type==3}
		  <div class="ks-countdown-end contdown contend" style="{if $cfg.front_pic==1}{foreach from=$front_cfg.contdown item=item key=key}{$key}:{$item};{/foreach}{/if}background:url(http://img04.taobaocdn.com/imgextra/i4/27390555/TB2O8ahapXXXXX0XXXXXXXXXXXX-27390555.gif) 0 0 no-repeat;left: 50px;cursor:pointer"> </div>
		  {else}
		  <div class="ks-countdown-end contdown contend" style="{if $cfg.front_pic==1}{foreach from=$front_cfg.contdown item=item key=key}{$key}:{$item};{/foreach}{/if}background:url(http://img04.taobaocdn.com/imgextra/i4/27390555/TB2DdkNaFXXXXXxXpXXXXXXXXXX-27390555.gif) 0 0 no-repeat;cursor:pointer"> </div>
		  {/if}
		  {if $ctp=="se"}<div class="play_time"><span>30</span>秒</div>{/if}
        </div>
		{if $cfg.front_pic==1}
		<div class="chance" style="position: absolute;{foreach from=$front_cfg.chance item=item key=key}{$key}:{$item};{/foreach}color: #fff;font-size: 14px;"> 
		  您还有<span class="J_Seeds">?</span>积分，<span class="J_Times">?</span>次抽奖机会
		</div>
		{else}
		<div class="chance" style="position: absolute;left: 380px;top: 20px;color: #fff;font-size: 14px;"> 
		  您还有<span class="J_Seeds">?</span>积分，<span class="J_Times">?</span>次抽奖机会
		</div>
		{/if}
        <div class="gifts" {if $cfg.front_pic==1}style="{foreach from=$front_cfg.gift item=item key=key}{$key}:{$item};{/foreach}"{/if}> 
		{foreach from=$gifts item=gift name=showgift}
		  {if $smarty.foreach.showgift.index <3 }
          <p>{$gift.level} {$gift.name}[{$gift.type}]</p>
		  {/if}
        {/foreach} 
		</div>
		<div class="gonggao" {if $cfg.front_pic==1}style="{foreach from=$front_cfg.gg item=item key=key}{$key}:{$item};{/foreach}"{/if}><a class="gg" data-tp="gg">活动公告</a>  <a class="gz" data-tp="gz">抽奖规则</a>  <a class="dj" data-tp="dj">兑奖方式</a></div>
		<div class="mygift" data-tp="gft" {if $cfg.front_pic==1}style="{foreach from=$front_cfg.mywin item=item key=key}{$key}:{$item};{/foreach}"{/if}></div>
        <div class="wins" {if $cfg.front_pic==1}style="{foreach from=$front_cfg.win item=item key=key}{$key}:{$item};{/foreach}"{/if}>
          <p style=" padding-left:4px;">共抽奖<span style=" color:#FF0107; padding:0 3px;">{$lotts}</span>次，累积中奖次数<span style=" color:#FF0107; padding:0 3px;">{$wins}</span>次</p>
          <div class="winlist">
		  <ul>
            {foreach from=$winner item=win}
            <li class="left">恭喜{$win.usernick|default:""|truncate:8:"******"}中奖！</li>
            <li class="right">{$win.name|default:""|truncate:12:".."}</li>
            {/foreach} 
          </ul>
		  </div>
        </div>
		{include file=$ctptpl}
		{if $cfg.tms_cartadd>0}
		<div class="jinnang" data-tp="jinnang" {if $cfg.front_pic==1}style="{foreach from=$front_cfg.cart item=item key=key}{$key}:{$item};{/foreach}cursor: pointer;position: absolute;"{else}style="background: url(http://img03.taobaocdn.com/imgextra/i3/27390555/TB2WAVabpXXXXb6XXXXXXXXXXXX-27390555.gif) repeat scroll -300px 0px transparent; width: 160px; height: 37px; top: 260px; position: absolute; left: 60px; cursor: pointer;"{/if}></div>
		{/if}
		
		
	  <div class="js-jifenduih ks-dialog ks-overlay allow_over hide" style="width:816px;margin-left:85px;left:0;z-index:9;display:block;top:50px;">
    <div class="ks-contentbox" style="height:auto">
        <div class="ks-stdmod-header" style="text-align:left">积分兑换奖品</div>
        <div class="ks-stdmod-body ">
            <div class="con-als">
				<!-- 积分兑换的旋转木马 -->
				<div id="demo4" class="J_TWidget section scrollable dd " data-widget-type="Carousel" 
				data-widget-config="{
				'effect':'scrollx','easing':'easeOutStrong','steps':6,'viewSize':[814],'circular':false,
				'prevBtnCls':'prev','nextBtnCls':'next','disableBtnCls':'disable','lazyDataType':'img-src'
				}">
				<span id="scroller-prev" class="prev disable"><!-- &lsaquo; 上一页 --></span>
				<span id="scroller-next" class="next"><!-- 下一页 &rsaquo; --></span>
				<div class="scroller">
					<div class="ks-switchable-content">
						<!-- 1-5 -->
						
					</div>
					<ul class="ks-switchable-nav">
						<li class="ks-active j-default">
							&bull;
						</li>
						<li>
							&bull;
						</li>
						<li>
							&bull;
						</li>
						<li>
							&bull;
						</li>
						<li>
							&bull;
						</li>
						<li>
							&bull;
						</li>
						<li>
							&bull;
						</li>
						<li>
							&bull;
						</li>
						<li>
							&bull;
						</li>
					</ul>
				</div>
				</div>
				<div style="clear:both"></div>
            </div>
        </div>
        <div class="ks-stdmod-footer"></div>
    </div>	<a class="ks-ext-close" role="button" href="javascript:void(" 关闭 ")"=""
    tabindex="0" data-spm-anchor-id="0.0.0.0">		<span class="ks-ext-close-x js-close">关闭</span>	</a>
</div>
			
			
      </div>
	</div>
  </div>
</div>
<div class="poupFadIn giftFadIn">
	<span class="close-x poupClose">关闭</span>
	<ul class="win-table">
	</ul>
</div>
<div class="poupFadIn jinnangFadIn">
	<span class="close-x poupClose">关闭</span>
	{if $cfg.front_pic==1}
	<div  data-mis="order" style="position: absolute;padding:0; {foreach from=$front_cfg.qdbtn item=i key=k}{$k}:{$i};{/foreach} line-height: {$front_cfg.qdbtn.height};" class="btn btn-large  btn-warning mission">
	订单兑换机会
	</div>
	<div data-mis="cartadd" style="position: absolute;padding:0;{foreach from=$front_cfg.qdjcbtn item=i key=k}{$k}:{$i};{/foreach} line-height: {$front_cfg.qdjcbtn.height};" class="btn btn-large  btn-warning mission">
	加购物车机会
	</div>
	<div data-mis="jifen" style="position: absolute;padding:0; {foreach from=$front_cfg.jfdhbtn item=i key=k}{$k}:{$i};{/foreach} line-height: {$front_cfg.jfdhbtn.height};" class="btn btn-large  btn-warning mission">
	积分兑换机会
	</div>
	<div data-mis="everyday"  style="position: absolute;padding:0; {foreach from=$front_cfg.ddhjfbtn item=i key=k}{$k}:{$i};{/foreach} line-height: {$front_cfg.ddhjfbtn.height};" class="btn btn-large  btn-warning mission">
	每天领取机会
	</div>
	{else}
	<div  data-mis="order" style="position: absolute;padding:0; visibility:visible;left:510px;top:20px;width:420px;height:60px;set:btn;size:btn-mini;style:btn-warning;picurl:;text:签到;tp:btn; vertical-align: middle; line-height: 60px;" class="btn btn-large  btn-warning mission">
	订单兑换机会
	</div>
	<div data-mis="cartadd" style="position: absolute;padding:0; visibility:visible;left:655px;top:100px;width:130px;height:60px;set:btn;size:btn-mini;style:btn-warning;picurl:;text:积分兑换;tp:btn; line-height: 60px;" class="btn btn-large  btn-warning mission">
	加购物车机会
	</div>
	<div data-mis="jifen" style="position: absolute;padding:0; visibility:visible;left:510px;top:100px;width:130px;height:60px;set:btn;size:btn-mini;style:btn-warning;picurl:;text:签到加成;tp:btn; line-height: 60px;" class="btn btn-large  btn-warning mission">
	积分兑换机会
	</div>
	<div data-mis="everyday"  style="position: absolute;padding:0; visibility:visible;left:800px;top:100px;width:130px;height:60px;set:btn;size:btn-mini;style:btn-warning;picurl:;text:订单号积分;tp:btn; line-height: 60px;" class="btn btn-large  btn-warning mission">
	每天领取机会
	</div>
	{/if}
	{if $cfg.front_pic==1}	
	<div style="position: absolute;text-indent:2em;padding:0; {foreach from=$front_cfg.jifen_rule item=i key=k}{$k}:{$i};{/foreach}" data-tp="jifen_rule" id="jifen_rule" class="ddjifen_rule jifen_rule  js-jifen_rule edit">
	{else}
	<div style="position: absolute;text-indent:2em;padding:0; visibility:visible;left:510px;top:176px;width:420px;height:165px;" data-tp="jifen_rule" id="jifen_rule" class="ddjifen_rule jifen_rule  js-jifen_rule edit">
	{/if}
	<p>{if $cfg.tms_newcomer>0}进入可抽奖{$cfg.tms_newcomer}次{/if}{if $cfg.tms_everyday>0}，每天可领取{$cfg.tms_everyday}次机会{/if}{if $cfg.tms_cartadd>0}，商品加购物车可获得{$cfg.tms_cartadd}次机会，最多获得{$cfg.tms_cartadd_limit}次{/if}</p>
	{if $cfg.orderset>0}
	  <p>订单号兑换抽奖机会：{if $cfg.andor==1}满足其中一条{else}同时满足以下条件{/if}：付款时间在{if $cfg.order_pay_time_start}{$cfg.order_pay_time_start}{else}3个月之内{/if}至{if $cfg.order_pay_time_end}{$cfg.order_pay_time_end}{else}不限{/if}之间{if $cfg.order_payment}，付款金额{$cfg.order_payment}元以上{/if}{if $cfg.cart_items}，订单内包含{$cfg.cart_items_count}件指定商品<!--a href="#">查看</a-->{/if}
	  <p>可兑换抽奖次数：{if $cfg.order_pay_times>0}付款后可兑换{$cfg.order_pay_times}次{/if}{if $cfg.order_success_times>0}，确认收货后可兑换{$cfg.order_success_times}次{/if}{if $cfg.tms_goodrate>0}，好评后可兑换{$cfg.tms_goodrate}次{/if}</p>
	{/if}
	</div>			
	<div class="cal">
	</div>
</div>
<div class="ui-dialog J_Dialog">
    <div class="ui-dialog-wrap" style="color:{$cfg.front_mob_cfg.dialog.dialog_text_color|default:'#a6a9ac'};border: 1px solid {$cfg.front_mob_cfg.dialog.dialog_border|default:'#393939'};background: -webkit-linear-gradient(top, {$cfg.front_mob_cfg.dialog.dialog_bg0|default:'#393939'}, {$cfg.front_mob_cfg.dialog.dialog_bg1|default:'#212121'}); ">
        <div class="theheader">
            <h2>
                <div class="h-wrap" style="background: url({$cfg.front_mob_cfg.dialog.dialog_bg|default:'https://img.alicdn.com/imgextra/i4/27390555/TB2SR8SsXXXXXcMXpXXXXXXXXXX-27390555.png'});">

                </div>
                <hr style="margin:0;border-color:{$cfg.front_mob_cfg.dialog.dialog_hr0|default:'#000'} transparent {$cfg.front_mob_cfg.dialog.dialog_hr1|default:'#414141'};" />
            </h2>
        </div>
        <div class="section">
        </div>
        <div class="thefooter">
        </div>
    </div>
</div>
<input type="hidden" value="{$dicescfg.onoff|default:""}" class="jpbangding">
<input type="hidden" value="{$cfg.front_pic|default:""}" class="zidingyi">
<input type="hidden" value="{$ddcj|default:""}" class="ddcj">
<input type="hidden" value="{$cfg.none_anim}" class="none_anim">
<input type="hidden" value="{$cfg.curtool}" class="curtool">
<input type="hidden" value="{$cfg.tool_type}" class="tool_type">
<input type="hidden" value="{$sid}" class="sid">
<input type="hidden" value="{$cfg.id}" class="event_id">
<input type="hidden" value="{$module_width}" class="module_width">
<input type="hidden" value="{$seller_nick}" class="seller_nick">
<input type="hidden" value="{$cfg.taobao_user_id}" class="uid">
<input type="hidden" value="0" class="scoreid">
<input type="hidden" value="{$top_sign}" class="sign">
<input type="hidden" value="{$top_parameters}" class="top_parameters">
<input type="hidden" value="{$cfg.brandid}" class="brandid">
<input type="hidden" value="{$cfg.cart_items}" class="cart_items">
<input type="hidden" value="{$cfg.cart_items_pics}" class="cart_items_pics">
<input type="hidden" value="{$cfg.tms_cartadd}" class="tms_cartadd">
</body>